/*******************************************************************************
 * Copyright (c) 2014 Steffen Mikkelsen
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 *     Steffen Mikkelsen - initial API and implementation
 ******************************************************************************/
package com.subsecret.secureconnection.securestream.stream;

import java.io.IOException;
import java.io.OutputStream;

public abstract class AbstractOutputStreamWrapper extends OutputStream {
    protected OutputStream os;
    
    public AbstractOutputStreamWrapper(OutputStream os) {
        this.os = os;
    }
    
    @Override
    public void flush() throws IOException {
        os.flush();
    }
    
    @Override
    public void close() throws IOException {
        os.close();
    }
    
    @Override
    public abstract void write(byte[] b) throws IOException;
    
    @Override
    public abstract void write(byte[] b, int off, int len) throws IOException;
    
}
